package com.woorigil.social.domain.deal;

import java.util.ArrayList;
import java.util.List;

import com.woorigil.social.BaseObject;


public class DealListDocument extends BaseObject {
	private String version;
	private String sourceProvider;
	private String homepage;
	private String logo;
	private List<Deal> deals;
	
	public List<Deal> add(Deal socialDeal) {
		if (deals == null) {
			deals = new ArrayList<Deal>();
		}
		deals.add(socialDeal);
		return deals;
	}
	
	public int size() {
		if (deals == null) {
			return 0;
		}
		return deals.size();
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getSourceProvider() {
		return sourceProvider;
	}

	public void setSourceProvider(String sourceProvider) {
		this.sourceProvider = sourceProvider;
	}

	public String getHomepage() {
		return homepage;
	}

	public void setHomepage(String homepage) {
		this.homepage = homepage;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public List<Deal> getDeals() {
		return deals;
	}

	public void setDeals(List<Deal> deals) {
		this.deals = deals;
	}
}
